using System.Collections.Generic;
using System.Web.UI;

namespace PropertyExpression.TypedDataBinding.Web
{
    public class GroupBinder<TData> : GroupBinderBase<TData>
    {
        private readonly Dictionary<Control, IControlBinder> dictionary =
            new Dictionary<Control, IControlBinder>();

        protected override IEnumerable<KeyValuePair<Control, IControlBinder>> GetCurrentDictionary()
        {
            return dictionary;
        }

        protected override void AddToCashe(Control control, IControlBinder controlBinder)
        {
            dictionary.Add(control, controlBinder);
        }
    }
}